package com.mt.roll.wms.vo;


import com.mt.roll.core.vo.CommonVo;
import com.mt.roll.core.vo.PageVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author weihongyang
 * @Date 2021/1/8 13:36
 * @Version 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@ApiModel(value = "物料类型视图对象", description = "用于查询物料类型")
public class MaterialTypeVo extends CommonVo implements PageVo.ConvertVo{
    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    @ApiModelProperty(value = "主键", required = true, example = "1")
    @NotNull(message = "ID不能为空")
    private Long id;

    /**
     * 编码
     */
    @ApiModelProperty(value = "物料类型编码", required = true, example = "code")
    @NotBlank(message = "物料类型编码不能为空")
    private String code;

    /**
     * 名称
     */
    @ApiModelProperty(value = "物料名称名称", required = true, example = "name")
    @NotBlank(message = "物料名称不能为空")
    private String name;
}
